#pragma once
#include<vector>
#include"renderObject.h"
#include"RenderMath.h"
namespace sr {
class Scene
{
	std::vector<RenderObject> _object;

	Camera _camera;
	Matrix _view;
	Matrix _projectMatrix;
public:
	std::vector<RenderObject>& getObject()noexcept;
	void addObject(RenderObject op);

	void generateViewMatrix();
	void genetateProjectMatrix();
	void init();

	const Matrix& getViewMatrix()const;
	const Matrix& getProjectMatrix()const;

	Camera& getCamera();


	void update();
};
}

